<?php

switch($action)
{
	case 'ClientUpload':
		if( $_FILES['Filedata']['tmp_name'] )
		{
			$ClientSrcName = date("Ymd").sprintf("%06d", rand(1, time()));
			$ClientSrcImg = fn_ClientUploadThumb($_FILES['Filedata'], 'ClientLogo' , $ClientSrcName, 200, 200);
			echo json_encode($ClientSrcImg);
		}	
	break;	
}

?>